import { RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/system",
    name: "layout_system",
    component: () => import("@/layout/index.vue"),
    meta: {
      title: "系统管理",
      sort: 10,
      isRoot: true,
    },
    children: [
      {
        path: "user",
        name: "user",
        component: () => import("@/views/user/index.vue"),
        meta: {
          title: "用户管理",
        },
      },
      {
        path: "auth",
        name: "auth",
        component: () => import("@/views/auth/index.vue"),
        meta: {
          title: "角色管理",
        },
      },
    ]
  },
];

export default routes;
